#!/usr/bin/env bash
#function: 变更 将阿里的仓库修改成默认仓库
#parmeter:
#author:
#version:
#Test: debian 10



function changemirror()
{

cp /etc/apt/sources.list /etc/apt/sources.listbak 


cat >/etc/apt/sources.list<</
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
/


apt-get update


}


changemirror
